package 算法.递归;

public class 一到一百的和 {
    public static void main(String[] args) {
        System.out.println(getSum(100));
    }
    public static int getSum(int number){
        if(number==1){
            return 1;
        }
        return number+getSum(number-1);
    }

}
